package com.pinecone.service;

import com.pinecone.dto.HostAndPrincipalDTO;
import com.pinecone.entity.CusHostEntity;
import com.pinecone.entity.CusPrincipalEntity;

import java.util.List;
import java.util.Map;

/**
 * 主播信息表
 * 
 * @author hushangjie
 * @email 979783618@qq.com
 * @date 2017-09-27 21:17:58
 */
public interface CusHostService {
	
	CusHostEntity queryObject(Long hostId);
	
	List<CusHostEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(CusHostEntity cusHost);
	
	void update(CusHostEntity cusHost);
	
	void delete(Long hostId);
	
	void deleteBatch(Long[] hostIds);

	void addHost(CusHostEntity hostEntity, Integer masterId);

    CusPrincipalEntity saveSlaveUser(String phone, String username, Integer orgId);

    CusHostEntity queryByCusId(Integer cusId);

    int queryCombineTotal(Map<String, Object> map);

    List<HostAndPrincipalDTO> queryCombineList(Map<String, Object> map);

    List<HostAndPrincipalDTO> queryCombineListByOrgId(Integer orgId);

    CusHostEntity queryByLiveRoomId(String liveRoomId);
}
